package model;

import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;

public class NavModel {
    private String href;
    private String title;
    private Integer id;
    private  Integer status;
    public String [] navHref={"/home","/company","/news","/product","/online","/callus",};
    public String [] navTitle ={"网站首页","公司介绍","新闻动态","产品展示","在线留言","联系我们",};

    @Override
    public String toString() {
        return "NavModel{" +
                "href='" + href + '\'' +
                ", title='" + title + '\'' +
                ", id=" + id +
                ", status=" + status +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    private List<NavModel> navList;

//    public List<NavModel> getNavList() {
//        return getNavList(navHref,navTitle);
//    }

//    public List<NavModel> getNavList(String[] navHref,String[]navTitle) {
//        List<NavModel> navList=new ArrayList<>();
//        for (int i=0;i<navHref.length;i++){
//            NavModel model =new NavModel();
//            model.setHref(navHref[i]);
//            model.setTitle(navTitle[i]);
//            navList.add(model);
//        }
//        return navList;
//    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
